import React, { Component } from 'react';
import {
    StyleSheet,
    Image,
    TouchableOpacity
} from 'react-native';

export default class ImageButton extends Component {
    render() {
        return (
            <TouchableOpacity style={Style.container} onPress={() => this.props.onPress()}>
                <Image style={this.props.style} source={this.props.source} />
            </TouchableOpacity>
        );
    }
}
const Style = StyleSheet.create({
    container: {
    }
});